<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\AsrMobile */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="asr-mobile-form">

    <?php $form = \yii\widgets\ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?>
    <?= $form->field($model, 'listname')->textInput(['maxlength' => true]) ?>
    <?=$form->field ( $model, 'file' )->widget ( \kartik\file\FileInput::classname (), [ 'options' => ['accept' => '.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel','multiple' => false],'pluginOptions' => [// 最多上传的文件个数限制
        'maxFileCount' => 1,'dropZoneTitle'=> '仅支持单文件上传...','accept' => '.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel']] );?>
    <?php ActiveForm::end(); ?>

    <a id="download" href="download" title="下载exel文件到本地"><span class="btn btn-info">下载模版文件到本地</span></a>

</div>
